package com.gitee.testprj.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/account")
public class AccountController {

    @GetMapping("/login")
    public String login(String loginName,String password){
        return "success";
    }


    @GetMapping("/logout")
    public String logout(HttpSession session){
        session.invalidate();
        return "success";
    }


}
